package com.heihei.itextdemo.service;

import com.heihei.itextdemo.dto.CommonResponseDTO;
import com.heihei.itextdemo.entity.MajorEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 专业 服务类
 * </p>
 *
 * @author duanhengfei
 * @since 2020-12-04
 */
public interface MajorService extends IService<MajorEntity> {

    /**
     * 添加
     */
    CommonResponseDTO<String> add(MajorEntity entity);

    /**
     * 获取专业-班级-学生树结构
     */
    CommonResponseDTO<List<MajorEntity>> getTree();
}
